from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from ui.Ui_serial_dialog import Ui_SerialDialog


class SerialSettingDialog(QDialog):
    def __init__(self):
        super().__init__()
        self.ui = Ui_SerialDialog()
        self.ui.setupUi(self)

        # 对用户的设置进行保存之类的操作

    # 监听用户点击了确定按钮
    def accept(self):
        super().accept()
        print("用户点击了确定按钮")
